package cn.bxshey.resourceSharing.service;


import cn.bxshey.resourceSharing.dto.essay.EssayDto;
import cn.bxshey.resourceSharing.entity.Essay;
import cn.bxshey.resourceSharing.vo.essay.EssayPageVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


/**
 * (Essay)表服务接口
 *
 * @author makejava
 * @since 2023-12-16 17:54:45
 */
public interface EssayService extends IService<Essay> {

    /*分页查询文章
     *
     * current: 第几页
     * size: 查询几条
     */
    Map<String,Object> paginatedQueries(Integer current, Integer size, EssayDto essayDto);


    /*
     *前7热点文章
     */
    List<Essay> getHotArticle(String[] kind);

    //搜索文章
    EssayPageVO essaySearch(Integer current, Integer size, String kind);


}
